package com.wc5818;

import com.wc5818.dto.CurrentActiveItem;
import com.wc5818.service.WorkflowService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RunWith(SpringRunner.class)
//启动Spring
@SpringBootTest
public class MyTest {
    @Autowired
    WorkflowService workflowService;

    @Test
    public void test() {
//        workflowService.myHistoryProcess("100019");
//        workflowService.taskList("1000117");
//        workflowService.deleteAllTask("1000117");

        workflowService.deployment("bpmn/loan.bpmn");
//        workflowService.deleteDeployment("30001");
//        workflowService.processCurrentStep("万车万融_车贷_002:1:4");
//        Map map = new HashMap<>();
//        map.put("fengkId", "1000295");
//        workflowService.complete("25002", map);
//        workflowService.historyActivityInstance("5018");
//        List<CurrentActiveItem> list = workflowService.assembleList("万车万融_贷款产品审核流程_003:1:10004", "10005");

        workflowService.taskList4History(1000117 + "");

    }

    @Test
    public void test2() {

    }

}
